.gradeManagement {
  padding: 0;
}

.pageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pageHeader h1 {
  margin: 0;
  color: #262626;
  font-size: 24px;
}

/* 搜索操作栏 */
.searchOperationsBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
}

.filterGroup {
  display: flex;
  gap: 10px;
}

.filterSelect {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  min-width: 150px;
}

.operationButtons {
  display: flex;
  gap: 10px;
}

.headerActions {
  display: flex;
  gap: 10px;
}

/* 按钮样式 */
.btnPrimary {
  background: #1890ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btnPrimary:hover {
  background: #40a9ff;
}

.btnSearch {
  background: #52c41a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btnSearch:hover {
  background: #73d13d;
}

.btnReset {
  background: #fff;
  color: #595959;
  border: 1px solid #d9d9d9;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btnReset:hover {
  background: #f5f5f5;
  border-color: #40a9ff;
  color: #40a9ff;
}

.btnTemplate, .btnImport {
  padding: 8px 16px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: white;
  color: #1890ff;
  cursor: pointer;
}

.btnTemplate:hover, .btnImport:hover {
  background: #1890ff;
  color: white;
}

.btnDetail {
  padding: 6px 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: white;
  color: #1890ff;
  cursor: pointer;
  font-size: 12px;
}

.btnDetail:hover {
  background: #1890ff;
  color: white;
}

.btnCancel {
  background: #f5f5f5;
  color: #262626;
  border: 1px solid #d9d9d9;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btnCancel:hover {
  background: #e6f7ff;
  border-color: #1890ff;
  color: #1890ff;
}

.btnClose {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.btnClose:hover {
  color: #666;
}

/* 班级成绩列表 */
.classGradeList {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.classGradeList table {
  width: 100%;
  border-collapse: collapse;
}

.classGradeList th,
.classGradeList td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.classGradeList th {
  background: #f8f9fa;
  font-weight: 500;
  color: #333;
}

.classGradeList tr:hover {
  background: #f8f9fa;
}

/* 模态窗口样式 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modalContent {
  background: white;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.largeModal {
  max-width: 1000px;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modalHeader h2 {
  margin: 0;
  color: #333;
}

/* 表单样式 */
.formModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.formContent {
  background: white;
  border-radius: 8px;
  padding: 0;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.formHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.formHeader h2 {
  margin: 0;
  font-size: 18px;
}

.formContent form {
  padding: 24px;
}

.formSection {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.formSection h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.formGroup {
  display: flex;
  flex-direction: column;
}

.formGroup label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.formGroup input,
.formGroup select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.formGroup input:focus,
.formGroup select:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.formActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #eee;
}

/* 详情样式 */
.detailContent {
  padding: 0;
}

.detailSection {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.detailSection h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.detailGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.detailItem {
  display: flex;
  flex-direction: column;
}

.detailItem label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.detailItem span {
  color: #333;
}

/* 考试科目表格 */
.examSubjectsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.examSubjectsTable th,
.examSubjectsTable td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
}

/* 姓名列特殊处理，确保在一行显示 */
.examSubjectsTable td:nth-child(2) {
  white-space: nowrap;
  word-break: keep-all;
  min-width: 60px;
}

.examSubjectsTable th {
  background: white;
  font-weight: 500;
}

/* 加载状态 */
.gradeManagementLoading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.loadingSpinner {
  color: #1890ff;
  font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .searchOperationsBar {
    flex-direction: column;
    gap: 15px;
  }
  
  .filterGroup {
    flex-wrap: wrap;
  }
  
  .modalContent {
    width: 95%;
    margin: 20px;
  }
  
  .formRow {
    grid-template-columns: 1fr;
  }
  
  .detailGrid {
    grid-template-columns: 1fr;
  }
  
  .headerActions {
    flex-direction: column;
  }
}
.noData {
  text-align: center;
  padding: 20px;
  color: #999;
}